﻿/// <reference path="~/Scripts/FlowBasis/FlowBasis-all-vsdoc.js" />

FlowBasis.defineNamespace("Data");

FlowBasis.Data.LocalResultSet = function (options) {
    this.data = options.data;
};

FlowBasis.Data.LocalResultSet.prototype.getEntry = function (index) {
    if (this.data) {
        return this.data[index];
    }
    else {
        return null;
    }
};

FlowBasis.Data.LocalResultSet.prototype.getOffset = function () {
    return 0;
};

FlowBasis.Data.LocalResultSet.prototype.getCount = function () {
    if (this.data && this.data.length) {
        return this.data.length;
    }
    else {
        return 0;
    }
};

FlowBasis.Data.LocalResultSet.prototype.getOverallCount = function () {
    return this.getOverallCount();
};

